package com.jz.controller;

import com.jz.module.dto.TAdviseDto;
import com.jz.service.AdviseService;
import com.jz.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/advise")
public class AdviseController {

    @Autowired
    private AdviseService adviseService;


    @RequestMapping("/page")
    public ResultUtil page(TAdviseDto dto) {
        return adviseService.page(dto);
    }

    @RequestMapping("/query")
    public ResultUtil query(TAdviseDto dto) {
        return adviseService.query(dto);
    }


    @RequestMapping("/save")
    public ResultUtil save(TAdviseDto dto) {
        return adviseService.save(dto);
    }

    @RequestMapping("/delete")
    public ResultUtil delete(TAdviseDto dto) {
        return adviseService.delete(dto);
    }

}
